SimplePay\Core\Utils\Rate_Limiting S

Total Complexity 35
Dependencies 0
Dependents 2
Total lines 387
Lines of code 140
Logical lines of code 84
Comment lines 178
Methods 17
Properties 3

Methods 17

Method Rating Maintainability Complexity Lines of code
cleanup_log()
S
60 5 13
has_hit_limit()
S
57 4 16
get_file()
S
61 3 13
write_to_log()
S
65 3 9
increment_rate_limit_count()
S
63 2 11
get_rate_limiting_entry()
S
67 2 8
get_rate_count()
S
65 2 9
setup_log_file()
S
66 2 8
update_rate_limiting_count()
S
63 2 10
get_decoded_file()
S
69 2 7
schedule_cleanup()
S
67 2 9
remove_log_entry()
S
73 1 5
rate_limiting_enabled()
S
73 1 5
get_rate_limit_id()
S
73 1 5
get_file_contents()
S
81 1 3
has_file()
S
80 1 3
init()
S
69 1 6